package com.jt.demo8_anno;

import org.springframework.stereotype.Component;

@Component //key : pig,value : 反射的对象
public class Pig implements Pet {
    @Override
    public void hello() {
        System.out.println("力争不被老虎吃掉!");
    }
}
